﻿using ALinq.Web.Security.Properties;
namespace ALinq.Web.Security
{
    public static class DataUtility
    {
        public static void SetDatabasePath(string path)
        {
            Settings.Default["ALinqMembershipConnectionString"] = path;
        }

        public static void CreateDatabaseIfNotExists()
        {
            var db = new MembershipDataContext();
            if (db.DatabaseExists() == false)
                db.CreateDatabase();
        }
    }
}
